package cn.anecansaitin.whimsy.common.enchantment;

import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.EnchantmentCategory;

/**
 * 手脚协同，附魔与物品上，使用时不减速。附魔与胸甲上，吃东西时不减速。
 */
public class ManualMotorCoordination extends Enchantment {
    public static final EnchantmentCategory ALL = EnchantmentCategory.create("ALL", (item) -> true);

    public ManualMotorCoordination() {
        super(Rarity.VERY_RARE, ALL, new EquipmentSlot[]{EquipmentSlot.MAINHAND, EquipmentSlot.OFFHAND, EquipmentSlot.CHEST});
    }

    @Override
    public boolean isTreasureOnly() {
        return true;
    }

    @Override
    public boolean isTradeable() {
        return false;
    }

    @Override
    public boolean isDiscoverable() {
        return false;
    }
}
